package interview10;

import org.junit.Test;

/**
 * @author Jack
 * @date 2019-11-06-15:45
 */
public class SolutionTest {

    Solution solution = new Solution();

    @Test
    public void testNumberOne(){
        int n = 1;
        int fibonacciN = solution.getFibonacciN(n);
        System.out.println(fibonacciN);
    }

    @Test
    public void testNumberTwo(){
        int n = 2;
        int fibonacciN = solution.getFibonacciN(n);
        System.out.println(fibonacciN);
    }
    @Test
    public void testNumberGt3(){
        for (int i = 3; i < 15; i++) {
            int fibonacciN = solution.getFibonacciN(i);
            System.out.printf("斐波那契中的第%d项的和为：%d",i,fibonacciN);
            System.out.println();
        }
    }

}
